package com.my12306.user.model;

import java.util.Objects;

/**
 * @Author:苏牧夕
 * @Date:2020/7/1 22:18
 * @Version 1.0
 */
public class LoginToken {
    private String refreshToken;

    public LoginToken() {
    }

    public LoginToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    @Override
    public String toString() {
        return "LoginToken{" +
                "refreshToken='" + refreshToken + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof LoginToken)) return false;
        LoginToken that = (LoginToken) o;
        return Objects.equals(getRefreshToken(), that.getRefreshToken());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getRefreshToken());
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }
}
